Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/angular

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/angular

TypeScript definitions for angular

  • 1.8.9
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
217K
decreased by-4.7%
Maintainers
1
Weekly downloads
 
Created

What is @types/angular?

@types/angular provides TypeScript type definitions for AngularJS, allowing developers to use AngularJS with TypeScript, which offers static type checking, better tooling, and improved code quality.

What are @types/angular's main functionalities?

Module Declaration

This feature allows you to declare an AngularJS module using TypeScript. Modules are containers for different parts of an application, such as controllers, services, filters, directives, etc.

const app = angular.module('myApp', []);

Controller Definition

This feature allows you to define a controller in AngularJS using TypeScript. Controllers are responsible for handling the data and logic of a view.

app.controller('myController', function($scope) {
  $scope.message = 'Hello, World!';
});

Service Creation

This feature allows you to create a service in AngularJS using TypeScript. Services are singleton objects that are used to organize and share code across an application.

app.service('myService', function() {
  this.sayHello = function() {
    return 'Hello, Service!';
  };
});

Directive Definition

This feature allows you to define a custom directive in AngularJS using TypeScript. Directives are used to create reusable components or to manipulate the DOM.

app.directive('myDirective', function() {
  return {
    template: '<div>{{ message }}</div>'
  };
});

Other packages similar to @types/angular

FAQs

Package last updated on 20 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc